<?php 
include 'include/header.php';
$connected = isset($_SESSION['profilActuel']);
if($connected)
{
	$profil = $_SESSION['profilActuel'];
}

?>
<div id="contenu">
	<?php

	if($connected){
		?>
	<div class="infos">
		<div class="infosGenerales">
			<h1>
				<?php echo $profil['prenom'] . " ," . $profil['nom']; ?>
			</h1>
			<h2>
				<?php echo $profil['courriel']; ?>
			</h2>
			<p>
				<a href="ajoutProfil.php">Modifier mon profil</a>
			</p>
		</div>
	</div>
	<?php 
	}else{
		echo '<p>Vous devez vous connecter.</p>';
	}
	?>

</div>
</body>

</html>
